package com.lotusfall.pojo.s3;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("schoolNew")
public class School {
    @Value("清华大学")
    private String name;

    @Value("海淀区")
    private String address;

    public School() {
        System.out.println("School的无参构造");
    }

    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
